package com.ly.wxstore.entity;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;


public class PrizeUserinfo {

	public PrizeUserinfo() {
	}
	
	private Long id; //
	private String uid; //
	private String mobile; //
	private String name; //
	private String purchaseIntention; //
	private Date receiveDate; //
	private String prize; //
	private Date winningDate; //
	private String reason; //
	private Long reasonCode; //
	private Long level; //
    
	
    /**
     *
     **/
	public Long getId(){
		return id;
	}
	
	/**
	 *
	 **/
	public void setId(Long id){
		this.id=id;
	}
    /**
     *
     **/
	public String getUid(){
		return uid;
	}
	
	/**
	 *
	 **/
	public void setUid(String uid){
		this.uid=uid;
	}
    /**
     *
     **/
	public String getMobile(){
		return mobile;
	}
	
	/**
	 *
	 **/
	public void setMobile(String mobile){
		this.mobile=mobile;
	}
    /**
     *
     **/
	public String getName(){
		return name;
	}
	
	/**
	 *
	 **/
	public void setName(String name){
		this.name=name;
	}
    /**
     *
     **/
	public String getPurchaseIntention(){
		return purchaseIntention;
	}
	
	/**
	 *
	 **/
	public void setPurchaseIntention(String purchaseIntention){
		this.purchaseIntention=purchaseIntention;
	}
    /**
     *
     **/
	public Date getReceiveDate(){
		return receiveDate;
	}
	
	/**
	 *
	 **/
	public void setReceiveDate(Date receiveDate){
		this.receiveDate=receiveDate;
	}
    /**
     *
     **/
	public String getPrize(){
		return prize;
	}
	
	/**
	 *
	 **/
	public void setPrize(String prize){
		this.prize=prize;
	}
    /**
     *
     **/
	public Date getWinningDate(){
		return winningDate;
	}
	
	/**
	 *
	 **/
	public void setWinningDate(Date winningDate){
		this.winningDate=winningDate;
	}
    /**
     *
     **/
	public String getReason(){
		return reason;
	}
	
	/**
	 *
	 **/
	public void setReason(String reason){
		this.reason=reason;
	}
    /**
     *
     **/
	public Long getReasonCode(){
		return reasonCode;
	}
	
	/**
	 *
	 **/
	public void setReasonCode(Long reasonCode){
		this.reasonCode=reasonCode;
	}
    /**
     *
     **/
	public Long getLevel(){
		return level;
	}
	
	/**
	 *
	 **/
	public void setLevel(Long level){
		this.level=level;
	}
   
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	//-----------------------------------
	/**
	 * 是否已领取奖品
	 * @return boolean
	 */
	public int getReceived(){
		if(receiveDate==null){
			return 0;
		}else{
			return 1;
		}
	}
}